home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6665 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  890 b 

  1. Path: chewy.vcx.net!usenet
  2. From: Bruce Arnold <barnold@vcx.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: how to seperate tokens in a string
  5. Date: Thu, 15 Feb 1996 22:16:32 -0800
  6. Organization: Sprint United Telephone/Eastern - Internet @ccess
  7. Message-ID: <31242140.52AF@vcx.net>
  8. References: <4ft8n9$5kg$1@mhafc.production.compuserve.com>
  9. NNTP-Posting-Host: y-wing-2a-32.tatooine.vcx.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (Win16; I)
  14.  
  15. > I am looking for a best way of seperating the tokens from a
  16. > string. The string to be processed somewhat like those in the
  17. > Windows INI file:
  18. >                 Keyword=TYPE##
  19.  
  20. The C standard library routine 'strtok()' is a very powerful function
  21. that is usually used for this type of problem.  Just use the '=' as
  22. a delimiter and then parse out the TYPE## manually.
  23. ...Bruce
  24.